import request from '@/utils/request'

// 查询流程申请单列表
export function listWfApplyForm(query) {
  return request({
    url: '/form/wfApplyForm/list',
    method: 'get',
    params: query
  })
}

// 查询流程申请单详细
export function getWfApplyForm(id) {
  return request({
    url: '/form/wfApplyForm/' + id,
    method: 'get'
  })
}

// 保存流程申请单
export function saveWfApplyForm(data) {
  return request({
    url: '/form/wfApplyForm/save',
    method: 'post',
    data: data
  })
}

// 删除流程申请单
export function delWfApplyForm(id) {
  return request({
    url: '/form/wfApplyForm/' + id,
    method: 'delete'
  })
}

// 导出流程申请单
export function exportWfApplyForm(query) {
  return request({
    url: '/form/wfApplyForm/export',
    method: 'get',
    params: query
  })
}

// 根据表单类型获取表单数据
export function getFormList(formType) {
  return request({
    url: '/form/wfApplyForm/getFormList/' + formType,
    method: 'get'
  })
}

export function getMeetingForm() {
  return request({
    url: '/form/wfApplyForm/getMeetingForm',
    method: 'get'
  })
}
